package com.gxa.weixing.pc;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;
import springfox.documentation.oas.annotations.EnableOpenApi;
import tk.mybatis.spring.annotation.MapperScan;

/**
 * @Author ChenJ
 * @date 2022/01/05 16:42
 **/
@SpringBootApplication
@MapperScan(value = "com.gxa.weixing.pc.mapper")
@EnableScheduling
@EnableOpenApi
public class PcMain {
    /**
     * springboot的启动方式是jar,所以主入口不再是启动tomcat
     * spring启动的时候都做了哪些事
     * jar需要main方式启动
     * 在main中告诉springboot中加载类
     *
     * @param args 参数
     */
    public static void main(String[] args) {
        SpringApplication.run(PcMain.class, args);
    }
}
